package com.goldman.aplt.base.type;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;

public class MsgEnumType {
    @Getter
    @ToString
    @AllArgsConstructor
    @NoArgsConstructor
    public enum E_MSGTYPE {
        JOIN_ACTIVE("1", "1", "JOIN_ACTIVE")
        ;
        private String id;
        @EnumValue
        @JsonValue
        private String value;
        private String longName;
    }


    @Getter
    @ToString
    @AllArgsConstructor
    @NoArgsConstructor
    public enum E_TOPIC {
        MARKET_TOPIC("1", "1", "MARKET-TOPIC")
        ;
        private String id;
        @EnumValue
        @JsonValue
        private String value;
        private String longName;
    }

    @Getter
    @ToString
    @AllArgsConstructor
    @NoArgsConstructor
    public static enum E_MQ_MSG_STATUS {
        TODO("0", "0", "TODO", "待发送"),
        DONE("1", "1", "DONE", "发送成功"),
        ERR("2", "2", "ERROR", "发送失败");
        private String id;
        @EnumValue
        @JsonValue
        private String value;
        private String longname;
        private String desc;
    }
}
